package com.boot.DTO;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class CategoryAddDAO {
    private Integer id;
    @NotBlank
    private String name;
    @NotNull
    private Integer sort;
    @Pattern(regexp = "^[12]$", message = "类型只能为菜品分类或套餐分类")
    private Integer type;
}
